package Com.StudentControlSystem;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        while (true) {
            System.out.println("---欢迎使用学生管理系统！---");
            System.out.println("1.添加学生");
            System.out.println("2.删除学生");
            System.out.println("3.修改学生");
            System.out.println("4.查询学生");
            System.out.println("5.退出系统");
            System.out.println("请输入你的选择：");
            Scanner sc = new Scanner(System.in);
            int choice = sc.nextInt();
            if (choice == 5) {
                System.out.println("欢迎下次再来");
                break;
            }

            switch (choice) {
                case 1:
                    AddStudent.addStudent();
                    break;
                case 2:
                        DeleteStudent.deleteStudent();
                        break;
                case 3:
                       CorrectStudent.correctStudent();
                        break;
                case 4:
                    SelectStudent.selectStudent();
                    break;
                default:
                    System.out.println("输入有误，请重新输入");
            }
        }
    }
}



